package com.finance.system.bean.pojo;

import com.finance.framework.lang.BaseObject;
import com.finance.util.Excel.ExcelVOAttribute;
import lombok.Data;


/**
 * 发货仓实体bean
 * Created by gyw on 2017/9/20.
 */
@Data
public class Warehouse extends BaseObject {
    @ExcelVOAttribute(name = "发货仓编码", column = "A",mustImport = true)
    private String warehouseCode;//发货仓编码
    @ExcelVOAttribute(name = "发货仓名称", column = "B",mustImport = true)
    private String warehouseName;//发货仓名称
    @ExcelVOAttribute(name = "发货省份编码", column = "C")
    private String provinceCode;//发货省份编码
    @ExcelVOAttribute(name = "发货省份编码", column = "C")
    private String provinceName;//发货省份
    @ExcelVOAttribute(name = "发货城市编码", column = "D")
    private String cityCode;//发货城市编码
    @ExcelVOAttribute(name = "发货城市", column = "D")
    private String cityName;//发货城市
    @ExcelVOAttribute(name = "发货区县编码", column = "E")
    private String countyCode;//发货区县编码
    @ExcelVOAttribute(name = "发货区县", column = "E")
    private String countyName;//发货区县


    @Override
    public boolean equals(Object object) {
        if (object instanceof Warehouse) {
            Warehouse warehouse = (Warehouse) object;
            return warehouse.getWarehouseCode().equals(this.warehouseCode);
        }
        return false;
    }

    @Override
    public int hashCode() {
        return this.getWarehouseCode().hashCode();
    }
}